3.1.4 \(\int \sinh (a+b x^2) \, dx\) [4]

Optimal. Leaf size=53 \[ -\frac {e^{-a} \sqrt {\pi } \text {Erf}\left (\sqrt {b} x\right )}{4 \sqrt {b}}+\frac {e^a \sqrt {\pi } \text {Erfi}\left (\sqrt {b} x\right )}{4 \sqrt {b}} \]

[Out]

-1/4*erf(x*b^(1/2))*Pi^(1/2)/exp(a)/b^(1/2)+1/4*exp(a)*erfi(x*b^(1/2))*Pi^(1/2)/b^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {5406, 2235, 2236} \begin {gather*} \frac {\sqrt {\pi } e^a \text {Erfi}\left (\sqrt {b} x\right )}{4 \sqrt {b}}-\frac {\sqrt {\pi } e^{-a} \text {Erf}\left (\sqrt {b} x\right )}{4 \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sinh[a + b*x^2],x]

[Out]

-1/4*(Sqrt[Pi]*Erf[Sqrt[b]*x])/(Sqrt[b]*E^a) + (E^a*Sqrt[Pi]*Erfi[Sqrt[b]*x])/(4*Sqrt[b])

Rule 2235

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2
]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2236

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erf[(c + d*x)*Rt[(-b)*Log[F],
 2]]/(2*d*Rt[(-b)*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && NegQ[b]

Rule 5406

Int[Sinh[(c_.) + (d_.)*(x_)^(n_)], x_Symbol] :> Dist[1/2, Int[E^(c + d*x^n), x], x] - Dist[1/2, Int[E^(-c - d*
x^n), x], x] /; FreeQ[{c, d}, x] && IGtQ[n, 1]

Rubi steps

\begin {align*} \int \sinh \left (a+b x^2\right ) \, dx &=-\left (\frac {1}{2} \int e^{-a-b x^2} \, dx\right )+\frac {1}{2} \int e^{a+b x^2} \, dx\\ &=-\frac {e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x\right )}{4 \sqrt {b}}+\frac {e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x\right )}{4 \sqrt {b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 45, normalized size = 0.85 \begin {gather*} \frac {\sqrt {\pi } \left (\text {Erf}\left (\sqrt {b} x\right ) (-\cosh (a)+\sinh (a))+\text {Erfi}\left (\sqrt {b} x\right ) (\cosh (a)+\sinh (a))\right )}{4 \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sinh[a + b*x^2],x]

[Out]

(Sqrt[Pi]*(Erf[Sqrt[b]*x]*(-Cosh[a] + Sinh[a]) + Erfi[Sqrt[b]*x]*(Cosh[a] + Sinh[a])))/(4*Sqrt[b])

________________________________________________________________________________________

Maple [A]
time = 0.23, size = 40, normalized size = 0.75

method result size
risch \(-\frac {\erf \left (x \sqrt {b}\right ) \sqrt {\pi }\, {\mathrm e}^{-a}}{4 \sqrt {b}}+\frac {{\mathrm e}^{a} \sqrt {\pi }\, \erf \left (\sqrt {-b}\, x \right )}{4 \sqrt {-b}}\) \(40\)
meijerg \(\frac {\sinh \left (a \right ) \sqrt {\pi }\, \sqrt {2}\, \left (\frac {\sqrt {i b}\, \sqrt {2}\, \erf \left (x \sqrt {b}\right )}{2 \sqrt {b}}+\frac {\sqrt {i b}\, \sqrt {2}\, \erfi \left (x \sqrt {b}\right )}{2 \sqrt {b}}\right )}{4 \sqrt {i b}}-\frac {i \cosh \left (a \right ) \sqrt {\pi }\, \sqrt {2}\, \left (-\frac {\left (i b \right )^{\frac {3}{2}} \sqrt {2}\, \erf \left (x \sqrt {b}\right )}{2 b^{\frac {3}{2}}}+\frac {\left (i b \right )^{\frac {3}{2}} \sqrt {2}\, \erfi \left (x \sqrt {b}\right )}{2 b^{\frac {3}{2}}}\right )}{4 \sqrt {i b}}\) \(117\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(b*x^2+a),x,method=_RETURNVERBOSE)

[Out]

-1/4*erf(x*b^(1/2))*Pi^(1/2)*exp(-a)/b^(1/2)+1/4*exp(a)*Pi^(1/2)/(-b)^(1/2)*erf((-b)^(1/2)*x)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 86 vs. \(2 (35) = 70\).
time = 0.26, size = 86, normalized size = 1.62 \begin {gather*} -\frac {1}{4} \, b {\left (\frac {2 \, x e^{\left (b x^{2} + a\right )}}{b} - \frac {2 \, x e^{\left (-b x^{2} - a\right )}}{b} + \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {b} x\right ) e^{\left (-a\right )}}{b^{\frac {3}{2}}} - \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {-b} x\right ) e^{a}}{\sqrt {-b} b}\right )} + x \sinh \left (b x^{2} + a\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x^2+a),x, algorithm="maxima")

[Out]

-1/4*b*(2*x*e^(b*x^2 + a)/b - 2*x*e^(-b*x^2 - a)/b + sqrt(pi)*erf(sqrt(b)*x)*e^(-a)/b^(3/2) - sqrt(pi)*erf(sqr
t(-b)*x)*e^a/(sqrt(-b)*b)) + x*sinh(b*x^2 + a)

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 48, normalized size = 0.91 \begin {gather*} -\frac {\sqrt {\pi } \sqrt {-b} {\left (\cosh \left (a\right ) + \sinh \left (a\right )\right )} \operatorname {erf}\left (\sqrt {-b} x\right ) + \sqrt {\pi } \sqrt {b} {\left (\cosh \left (a\right ) - \sinh \left (a\right )\right )} \operatorname {erf}\left (\sqrt {b} x\right )}{4 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x^2+a),x, algorithm="fricas")

[Out]

-1/4*(sqrt(pi)*sqrt(-b)*(cosh(a) + sinh(a))*erf(sqrt(-b)*x) + sqrt(pi)*sqrt(b)*(cosh(a) - sinh(a))*erf(sqrt(b)
*x))/b

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sinh {\left (a + b x^{2} \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x**2+a),x)

[Out]

Integral(sinh(a + b*x**2), x)

________________________________________________________________________________________

Giac [A]
time = 0.47, size = 41, normalized size = 0.77 \begin {gather*} \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {b} x\right ) e^{\left (-a\right )}}{4 \, \sqrt {b}} - \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {-b} x\right ) e^{a}}{4 \, \sqrt {-b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x^2+a),x, algorithm="giac")

[Out]

1/4*sqrt(pi)*erf(-sqrt(b)*x)*e^(-a)/sqrt(b) - 1/4*sqrt(pi)*erf(-sqrt(-b)*x)*e^a/sqrt(-b)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \mathrm {sinh}\left (b\,x^2+a\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(a + b*x^2),x)

[Out]

int(sinh(a + b*x^2), x)

________________________________________________________________________________________